package com.example.opc_test_914.model.client;

/**
 * @author Man.Chen
 * @date 2023/9/14 14:27
 */
import com.example.opc_test_914.model.util.OpcUaUtil;
import org.eclipse.milo.opcua.sdk.client.OpcUaClient;

import java.util.Collections;

/**
 * @author tarzan
 */
public class OpcUaClientTest {
    public static void main(String[] args) throws Exception {
        String endPointUrl="opc.tcp://127.0.0.1:49320";
        OpcUaClient client= OpcUaUtil.createClient(endPointUrl,null,null);
        OpcUaUtil.browse("cm.xdc",client);

//        OpcUaUtil.writeValue("cm.xdc.x3","110",client);
        OpcUaUtil.disconnect(client);
//        Thread.sleep(Integer.MAX_VALUE);
    }
}


